package digital.store.springmvc.dao;


import java.util.List;

import digital.store.tutorial.springmvc.model.Product;



/**
 * Implement a dummy DAO which store data in a Map
 * @author vinh
 *
 */

public interface ProductDao {
	public void saveOrUpdate(Product product);

    public void delete(Long id);
    
    public List<Product> findByCategoryId(Long id);
    
    public List<Product> findAll();

    public Product findById(Long id);
}
